<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2007-9-16
  Time: 19:31:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/taglib.jsp" %>
<head><title>首页</title>
    <meta content="index" name="menu"> 
</head>
<body>
<div id="innerContent">
<%--<div class="announce" style="display: block">
    <div class="announce-content">
        Welcome to Bo-Blog.
    </div>
</div>--%>
    <c:forEach items="${actionBean.articles.elements}" var="article">
<div class="textbox">
    <div class="textbox-title">
        <h4>
                        <span id="starid1"></span><a href="/article.do?id=${article.id}">${article.title}</a>
        </h4>

        <div class="textbox-label">
            [<fmt:formatDate value="${article.createTime}" pattern="${siteConfig.datePattern}"/> ]
        </div>
    </div>

    <div class="textbox-content">
        <%--<div class="quote">
            <div class="quote-title">Windows Media
                Player文件
            </div>
            <div class="quote-content"><a
                    href="javascript: playmedia('player54053', 'wmp', 'attachment/june-himo-mmo.mp3', '400', '300');">点击打开/折叠播放器</a>

                <div id='player54053' style='display:none;'></div>
            </div>
        </div>--%>
        ${article.content}
    </div>
    <div class="tags" style="display: block"> Tags:
        <c:forEach items="${article.tags}" var="tag">
        <a href="/tag.do?tagId=${tag.id}&listArticle" title="Tags:  ${tag.name}"  rel="tag">${tag.name}</a>
        </c:forEach>
    </div>
    <div class="textbox-bottom">
         by <a
                href="/article.do?id=${article.id}" target="_blank">${article.authorName}</a> |
        <a href="${article.catalog.catalogLink}" title="查看分类： ${article.catalog.name}">${article.catalog.name}</a> |
        <a href="/article.do?id=${article.id}#reply" title="发表您的评论">评论(${article.commentSize})</a>
        | <a href="/article.do?id=${article.id}">阅读(${article.readSize})</a>
    </div>

</div>
    </c:forEach>


<div class="article-bottom" style="display: block">
    <div class="pages">
        <i:page curPage="${actionBean.articles.pageNumber}" totalCount="${actionBean.articles.totalElements}" viewCount="${actionBean.articles.pageSize}" useDefaultStyle="false"/>
    </div>
</div>
</div>
</body>